#include "../head.h"
volatile int i = 0;

void test()
{
    for(int n = 0; n < 10000; ++n)
        ++i;
}
int main()
{
    cout << "Thread start" << endl;
    std::thread test1(test);
    std::thread test2(test);

    test1.join();
    test2.join();
    cout << "Now i is " << i << endl;
}